﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>Error</title>
    <script src="~/Content/js/jquery-1.9.1.min.js"></script>
    <style>
        /* 登录超时 */
        .timeout {
            background: url(../content/images/timeout-bg.png) no-repeat center 100px;
            height: 600px;
            font-size: 14px;
            text-align: center;
            font-family: 'Microsoft YaHei';
        }

        .oper {
            padding-top: 425px;
            margin: 0 auto;
            overflow: hidden;
            line-height: 30px;
            width: 400px;
            text-align: left;
        }

            .oper span {
                float: left;
                color: #333;
            }

        .btn-return {
            float: left;
            position: relative;
            background: #20aed7;
            width: 102px;
            height: 32px;
            line-height: 28px;
            color: #fff;
            font-weight: bold;
            margin-left: 10px;
            cursor: pointer;
            -moz-border-radius: 3px;
            -khtml-border-radius: 3px;
            -webkit-border-radius: 3px;
            border-radius: 3px;
            border: none;
            padding-left: 10px;
            padding-right: 3px;
            text-align: left;
        }

            .btn-return:hover {
                background: #0e9ec7;
            }

        .oper span.secs {
            font-size: 12px;
            position: absolute;
            right: 5px;
            font-weight: normal;
            color: #fff;
        }

        .secs em {
            font-style: normal;
        }
    </style>
</head>
<body class="error-page">
    <div class="timeout">
        <p class="oper"><span>登录已超时，正在返回登录，您可以</span><button type="button" class="btn-return" onclick="top.location.href='index'">立即返回<span class="secs">（<em id="tip"></em>）</span></button></p>
    </div>
</body>
</html>
<script type="text/javascript">
    function Countdown(i) {
        $("#tip").html(i);
        if (i == 0) {
            top.location.href = 'index';
        } else {
            i--;
            setTimeout("Countdown(" + i + ")", 1000);
        }
    }
    Countdown(5); //设置秒值
</script>